package com.example.demo005;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

public class nihao { // 表示如果访问路径/,返回字符串Hello World!
    @RequestMapping("/")
    @ResponseBody
    String home() {
        return "Hello World!";
    }
}
